const fs = require('fs')
const { dirname } = require('path')
const path = require('path')

// __dirname 表示当前文件所处的目录
console.log(__dirname)

const pathStr = path.join('/a' , '/b/c' , '../' , '/e')

console.log(pathStr)

const pathStr2 = path.join(__dirname , '1.js')

console.log(pathStr2)

console.log(path.basename(pathStr2))

